﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace MedicalSelfserviceTerminals
{
    /// <summary>
    /// InputCardWindow.xaml 的交互逻辑
    /// </summary>
    public partial class InputCardWindow : Window
    {
        public InputCardWindow()
        {
            InitializeComponent();
        }

        private void UCLeftButton_MouseLeftButtonDown_1(object sender, MouseButtonEventArgs e)
        {
            this.Close();
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            txtCardID.Focus();
        }

        private void Label_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            txtCardID.Text = txtCardID.Text + "1";
        }

        private void lb2_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            txtCardID.Text = txtCardID.Text + "2";
        }

        private void lb3_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            txtCardID.Text = txtCardID.Text + "3";
        }

        private void lb4_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            txtCardID.Text = txtCardID.Text + "4";
        }

        private void lb5_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            txtCardID.Text = txtCardID.Text + "5";
        }

        private void lb6_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            txtCardID.Text = txtCardID.Text + "6";
        }

        private void lb7_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            txtCardID.Text = txtCardID.Text + "7";
        }

        private void lb8_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            txtCardID.Text = txtCardID.Text + "8";
        }

        private void lb9_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            txtCardID.Text = txtCardID.Text + "9";
        }

        private void lbBack_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            txtCardID.Text = string.Empty;
        }

        private void lb0_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            txtCardID.Text = txtCardID.Text + "0";
        }

        private void lbOK_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            PrescriptionWindow frm = new PrescriptionWindow();
            frm.ShowDialog();
            this.Close();

        }

     
    }
}
